/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package views;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.logging.Level;
import java.util.logging.Logger;
import models.Etape;
import utils.MyUtils;
import org.jdesktop.swingx.table.TableColumnExt;
import tableModels.TableEtapeModel;

/**
 *
 * @author juju
 */
public class frmEtapes extends javax.swing.JPanel {

    /**
     * Creates new form frmReservation
     */
     protected Etape etape;
    /**
     * Creates new form frmCircuit
     */
    public frmEtapes() {
        initComponents();
        this.etape= new Etape();
        this.etape.setIdentifiant(0);
    }
    
    public frmEtapes(String id) {
        initComponents();
        this.etape= new Etape();
        this.etape.setIdentifiant(Integer.parseInt(id));
        affEtape(this.etape.getIdentifiant());
    }
    
     private void affEtape(int id) {
        this.etape.find(id);
           
      
    }
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 435, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 422, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
